'''
Author: bathfire 
Date: 2025-05-04 17:34:02
LastEditors: bathfire 
LastEditTime: 2025-05-05 00:21:32
FilePath: 
'''
import time

from mySerial import getCOMport, sendCom
#
test_com = getCOMport('USB-Enhanced-SERIAL CH343')
testContent = [
    [
        'ZJX', '37.47', '0.0', '1.0', '2.0', '112.0', '22.0', '0.98', '6.42',
        '9.0', '37.96', '102.0', '1.0', '1.0', '8.0', '105.0', '2.0', '1.0',
        '0.0', '0.0', '0.0', '37.99', '0.0', '0.0', '1.0', '0.0', '6.44',
        '6.48', '0.0', '0.0', '0.0', '0.0', '2.0', '0.0', '1.0', '112.0',
        '27.0', '0.98', '0.0', '0.0', '1', '1', '0', '0', '0', '0', '0', '0',
        '0', '0', '0', '1', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1',
        '1', '1', 1728960801
    ],
    [
        '6', '45.1', '48.1', '45.4', '58.1', '49.9', '55.6', '50.4', '62.4',
        1728961326
    ],
    [
        '7', '0.0', '25.0', '23.0', '25.0', '17.0', '21.0', '19.0',
        '21.0', '2014.04', '9191.61', '2047.18', '23.0', 1728961333
    ], ['DD', '0',
        '1', '0', '0', 1728961339], ['FD', '0', '0', '0', '1', 1728961346],
    [
        'JZ0', '21.16', '21.16', '15.99', '15.99', '16.04', '16.04', '0.0',
        '0.0', 1728961353
    ],
    [
        'JZ1', '-3.98', '0.0', '0.0', '0.0', '1.0', '0.0', '0.0', '0.0', '0.0',
        '21.0', '23.6', '23.7', '26.0', '23.6', '22.1', '24.0', '23.8', '24.1',
        '23.9', '24.0', '23.8', '23.0', '23.7', '23.8', '23.9', '0.3', '0.5',
        '1.0', '1.0', '7.0', '7.0', '2.0', '3.0', '0.0', '0.0', '0.0', '0.0',
        '0.0', '0.0', '0.0', '1.66', '0.0', '0', '0', '1', '0', '1', '1', '0',
        '0', '1', '1', '1', '0', '0', 1728961360
    ],
    [
        'JZ2', '-18.27', '0.0', '0.0', '0.0', '1.0', '0.0', '0.0', '0.0',
        '0.0', '23.0', '23.5', '23.3', '19.0', '23.7', '23.3', '23.7', '24.0',
        '23.6', '23.6', '24.0', '23.8', '24.0', '23.7', '23.5', '23.5', '1.7',
        '1.3', '1.0', '2.0', '2.0', '4.0', '0.0', '0.0', '0.0', '0.0', '0.0',
        '0.0', '0.0', '0.0', '0.0', '0.0', '0.0', '0', '1', '0', '1', '0', '1',
        '1', '1', '0', '0', 1728961367
    ],
    [
        'JZ3', '-17.03', '0.0', '0.0', '0.0', '1.0', '0.0', '0.0', '0.0',
        '0.0', '0.0', '23.6', '23.3', '27.0', '23.5', '23.5', '23.9', '23.9',
        '23.8', '23.7', '23.0', '24.0', '24.0', '23.7', '23.6', '23.9', '0.8',
        '1.3', '4.0', '2.0', '11.0', '12.0', '0.0', '2.0', '2.0', '0.0', '0.0',
        '0.0', '0.0', '0.0', '0.0', '0.0', '0.0', '0', '1', '0', '1', '0', '1',
        '1', '1', '0', '0', 1728961374
    ],
    [
        'JZ4', '-3.95', '0.0', '0.0', '0.0', '1.0', '0.0', '0.0', '0.0', '0.0',
        '23.0', '23.7', '23.4', '-15.0', '24.0', '23.2', '23.7', '19.5',
        '24.0', '24.0', '25.0', '23.9', '23.0', '24.0', '24.1', '24.0', '0.8',
        '1.1', '2.0', '2.0', '2.0', '2.0', '0.0', '2.0', '0.0', '0.0', '0.0',
        '0.0', '0.0', '0.0', '0.0', '1.76', '0.0', '1', '0', '0', '1', '0',
        '1', '1', '1', '0', '0', 1728961381
    ],
    [
        'SHUI', '0.0', '0.3', '24.8', '0.1', '40.0', '21.46', '20.66', '20.73',
        '20.19', '22.0', '24.0', '24.0', '46.5', '1', '0', '1', '0', '0', '0',
        '0', '0', '0', '1', '0', '1', '1', '0', '0', '0', '0', '1', '1', '0',
        '0', 1728961389
    ]
]
sendCom(comport=test_com[0], sendContent=testContent)
